﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Text;
using TF.Access;

public partial class index : System.Web.UI.Page
{
    protected string nick_name;
    protected string newFriends;
    protected void Page_Load(object sender, EventArgs e)
    {
        newFriends = SelectNewFriends();
    }

    private static string SelectNewFriends()
    {
        StringBuilder sb = new StringBuilder();
        try
        {
            List<TF_UserProfile> newFriends = TF_UserProfile.SelectNewFriends();

            foreach (TF_UserProfile nf in newFriends)
            {
                sb.Append(string.Format(Constant.NEW_FRIENDS,
                    nf.Uid.ToString(), nf.Pic, nf.Uid, nf.Nick_Name));
            }
        }
        catch (Exception ex)
        {
            //
        }

        return sb.ToString();
    }



}
